<?php
/**
 * @version : 1.0
 * @since June-2008
 * @package : lib
 * @subpackage struct
 * @deprecated Lớp CDataList là mở rộng từ lớp CList
 * @name : CDataList
 * @todo : Thao tác với đối tượng DataList
*/

class CDataList extends CList
{
	public $length;
	public $table;
	function __construct($table, $condition = false, $options=array())
	{
		$this->table = CTable($table);
		parent::__construct($this->table->store->select_all($table,$condition, $options));
		$this->length = $this->table->store->count($table, $condition);
	}
}
function CDataList($table, $condition = false, $options=array())
{
	return new CDataList($table, $condition, $options);
}
?>